{% extends "base_generic.html" %}
{% block title %}{{ cosa.title }}{% endblock %}
{% block ogimg %}http://www.fieltro.org/cosa/{{ cosa.slug }}/img{% endblock %}
{% block content %}
{% if logged %}
  <p style="margin: 0"><a href="/admin/cosas/{{ cosa.key }}/edit/">EDITAR</a></p> 
{% endif %}
<p id="breadcrumbs"><a href="/">Fieltro</a> ›{% if cosa.categoria %} <a href="/{{ cosa.categoriaSlug }}">{{ cosa.categoria|capfirst }} de fieltro</a> ›{% endif %}</p>
<h1>{{ cosa.title }}</h1>
<div id="maincontent">
  <img src="/cosa/{% if cosa.slug %}{{ cosa.slug }}{% else %}{{ cosa.key }}{% endif %}/img" width="450" alt="{{ cosa.title }}" title="{{ cosa.title }}" style="float: left; margin-right: 20px" />
  <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.fieltro.org%2Fcosa%2F{{ cosa.slug }}&amp;layout=button_count&amp;show_faces=true&amp;width=280&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:280px; height:21px;" allowTransparency="true"></iframe>
  <p>{{ cosa.pubDate|date:"d/m/y" }}</p>
  {{ cosa.description|textile }}
  <script type="text/javascript"><!--
  google_ad_client = "ca-pub-6304701092772988";
  /* rectangulo fieltro */
  google_ad_slot = "6458159587";
  google_ad_width = 336;
  google_ad_height = 280;
  //-->
  </script>
  <script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  </script>
  
<!--
  <h2>Comentarios</h2>
  <p>Dejanos tu comentario! :)</p>
  <form id="" action="action" method="post">
    <label for="name">Nombre:</label>
    <input type="text" name="name" value="" id="name">
    <label for="text">Comentario:</label>
    <textarea name="text" rows="8" cols="40"></textarea>
  </form>
-->
  <br class="clear" />
  {% if cosa.tag %}
    <h2><a href="/{{ cosa.tagSlug }}">{{ cosa.tag|capfirst }} de fieltro</a></h2>
    {% for cosa in tagCosas %}
	{% if cosa.title %}
      <div class="cosa" style="float: left; margin-right: 6px; width: 129px;">
        <a href="/cosa/{{ cosa.slug }}"><img src="/cosa/{{ cosa.slug }}/img/110/85/cropped/" width="110" height="85" alt="{{ cosa.title }}" /></a>
      </div>
	{% endif %}
    {% endfor %}
    <br class="clear" />
  {% endif %}
  {% if cosa.categoria %}
    <h2><a href="/{{ cosa.categoriaSlug }}">{{ cosa.categoria|capfirst }} de fieltro</a></h2>
    {% for cosa in categoriaCosas %}
	{% if cosa.title %}
      <div class="cosa" style="float: left; margin-right: 6px; width: 129px;">
        <a href="/cosa/{{ cosa.slug }}"><img src="/cosa/{{ cosa.slug }}/img/110/85/cropped/" width="110" height="85" alt="{{ cosa.title }}" /></a>
      </div>
	{% endif %}
    {% endfor %}
    <br class="clear" />
  {% endif %}
</div>
{% endblock %}